{:PHP_EOL}
	/**
	* @title 添加{$table_title}{:PHP_EOL}
	* @description 添加{$table_title}{:PHP_EOL}
	* @author {$author}{:PHP_EOL}
	* @url /{$module_name}/{$table_name}/add
	* @method *
	*
	* @header name:token require:1 default: desc:token
	*
{php}
	$table_comment_unset_id=$table_comment;
	unset($table_comment_unset_id['id']);
{/php}
{foreach $table_comment_unset_id as $key=>$comment }
	* @param name:{$key} type:{$comment['DATA_TYPE']} require:0 other: desc:{$comment['COLUMN_COMMENT']}{:PHP_EOL}
{/foreach}
	* @return data:{$table_title}@!
	* @data {foreach $table_comment as $key=>$comment }	{$key}:{$comment['COLUMN_COMMENT']}{/foreach}

	*/
	public function add(){
		$data=input();
		/**
		*$validate = new \{$app_namespace}\{$module_name}\validate\{:parse_name($table_name,true)}();
		*$validate->scene('add');
		*$result = $validate->batch(true)->check($data);
		*if ($result !== true) {
		*$msg['msg']='校验失败';
		*$msg['validate']=$validate->getError();
		*$msg['error_id']='1-{$module_no}-{$controller_no}-0001';
		*return $this->errorJson($msg);
		*}
		**/
		$model=new \{$app_namespace}\{$module_name}\model\{:parse_name($table_name,true)}();
		$flag = $model->save($data);
		if($flag){
			$msg['msg']='添加成功';
			$msg['data']=$model->get($model['id']);
			return $this->successJson($msg);
		}else{
			$msg['msg']='添加失败';
			return $this->errorJson($msg);
		}
	}